<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="adminuser" varStatus="adminuserindex" items="${datas}">
	<tr>
		<c:if test="${adminuserindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>

		<td>
			${adminuser.id}
		</td>
		<td class="keys">
			${adminuser.username}
		</td>
		<td>
			<tz:if test="${adminuser.forbidenCode=='001'}">
				<tz:then><a href="javascript:void(0)" opid="${adminuser.id}" mark="forbidenCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>
				<tz:else><a href="javascript:void(0)" opid="${adminuser.id}" mark="forbidenCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>
			</tz:if>
		</td>
		<td>
			<tz:if test="${'001'==adminuser.deleteCode}">
				<tz:then><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>
				<tz:else><a href="javascript:void(0)" opid="${adminuser.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>
			</tz:if>
		</td>
		<td>
			${adminuser.rolename!=null ? adminuser.rolename : '暂未分配'}
		</td>
		<td class="tmui-tips" tip="${tz:formatDate(adminuser.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(adminuser.createTime)}
		</td>

		<td>
			<a href="${adminPath}/adminuser/edit/${adminuser.id}" data-opid="${adminuser.id}" class="btn btn-default" ><i class="iconfont icon-edit"></i> 修改</a>
		    <a href="javascript:void(0);" data-opid="${adminuser.id}" onclick="tzAdmin.remove(this)" class="btn btn-danger"><i class="iconfont icon-del"></i> 删除</a>
		</td>
	</tr>
</c:forEach>
